<template>
	<view class="work_order_container">
		<view class="" v-if="user_type=='2'||!user_type&&flag">

			<view class="mail_two">
				<u-tabs class="first_tabs" :list="list" :is-scroll="false" :current="current" :show-bar="false"
					inactive-color="#e3e3e3" active-color="#ffffff" bg-color="#cccccc" @change="change"></u-tabs>
				<!-- 报事报修 -->
				<view class="tabs" v-if="current==0">
					<uni-card style="height: 82rpx; margin: 0; border-radius: unset;">
						<u-tabs :list="list2" :current="current2" item-width="150rpx" bar-width="90" :gutter="10"
							@change="change2">
						</u-tabs>
					</uni-card>
				</view>
				<!-- 巡更 -->
				<view class="tabs" v-if="current==1">
					<uni-card style="height: 82rpx; margin: 0; border-radius: unset;">
						<u-tabs :list="list3" :current="current3" item-width="150rpx" bar-width="90" :gutter="10"
							@change="change3">
						</u-tabs>
					</uni-card>
				</view>
				<!-- 巡检 -->
				<view class="tabs" v-if="current==2">
					<uni-card style="height: 82rpx; margin: 0; border-radius: unset;">
						<u-tabs :list="list3" :current="current3" item-width="150rpx" bar-width="90" :gutter="10"
							@change="change3">
						</u-tabs>
					</uni-card>
				</view>
				<!-- 巡查 -->
				<view class="tabs" v-if="current==3">
					<uni-card style="height: 82rpx; margin: 0; border-radius: unset;">
						<u-tabs :list="list3" :current="current3" item-width="150rpx" bar-width="90" :gutter="10"
							@change="change3">
						</u-tabs>
					</uni-card>
				</view>
				<!-- 抄表 -->
				<view class="tabs" v-if="current==4">
					<uni-card style="height: 82rpx; margin: 0; border-radius: unset;">
						<u-tabs :list="list4" :current="current4" item-width="150rpx" bar-width="90" :gutter="10"
							@change="change4">
						</u-tabs>
					</uni-card>
				</view>
				<!-- 审批 -->
				<view class="tabs" v-if="current==5">
					<uni-card style="height: 82rpx; margin: 0; border-radius: unset;">
						<u-tabs :list="list5" :current="current5" bar-width="150" item-width="200rpx" :gutter="10"
							@change="change5"></u-tabs>
					</uni-card>
				</view>
			</view>
			<view class=""
				style="position: fixed; z-index: 99;width: 100%;height: 20rpx;background: linear-gradient(to right, #e8f5ff , #effcff);">

			</view>
			<!-- 报事报修 -->
			<view v-if="current==0" style="margin-top: 20rpx;">
				<!-- 全部 -->
				<uni-card class="second_card three_card" v-for="(value,key,index) in allData2" :key="index"
					style="margin: 0;" v-if="current2==0">
					<view class="time">
						<!-- 2021-06-09 星期三 今天 -->
						{{ key }}
					</view>
					<u-cell-group :border="false" v-for="(item,index) in allData2[key]" :key="index">
						<u-cell-item title="园区报修" arrow-direction="right" v-if="item.repairType==0">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.description"
								:value="item.auditFlag=='0'? '待审核' : item.auditFlag=='1' ? '同意' : '拒绝'"
								:value-style="{'color':'#f9c851'}">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title="居家维修" arrow-direction="right" v-if="item.repairType==1">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.description"
								:value="item.auditFlag=='0'? '待审核' : item.auditFlag=='1' ? '同意' : '拒绝'"
								:value-style="{'color':'#f9c851'}">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title="灾害报事" arrow-direction="right" v-if="item.repairType==2">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.description"
								:value="item.auditFlag=='0'? '待审核' : item.auditFlag=='1' ? '同意' : '拒绝'"
								:value-style="{'color':'#f9c851'}">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title="投诉" arrow-direction="right" v-if="item.repairType==3">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.description"
								:value="item.auditFlag=='0'? '待审核' : item.auditFlag=='1' ? '同意' : '拒绝'"
								:value-style="{'color':'#f9c851'}">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title="建议" arrow-direction="right" v-if="item.repairType==4">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.description"
								:value="item.auditFlag=='0'? '待审核' : item.auditFlag=='1' ? '同意' : '拒绝'"
								:value-style="{'color':'#f9c851'}">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group>

				</uni-card>

				<!-- 待审核 -->
				<uni-card class="second_card three_card" v-for="(value,key,index) in allData3" :key="index"
					style="margin: 0;" v-if="current2==1">
					<view class="time">
						<!-- 2021-06-09 星期三 今天 -->
						{{ key }}
					</view>
					<u-cell-group :border="false" v-for="(item,index) in allData3[key]" :key="index">
						<u-cell-item title="园区报修" arrow-direction="right" @click="reportDetails(item.repairId)"
							v-if="item.repairType==0">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.description"
								:value="item.auditFlag=='0'? '待审核' : item.auditFlag=='1' ? '同意' : '拒绝'">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title="居家维修" arrow-direction="right" @click="reportDetails(item.repairId)"
							v-if="item.repairType==1">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.description"
								:value="item.auditFlag=='0'? '待审核' : item.auditFlag=='1' ? '同意' : '拒绝'">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title="灾害报事" arrow-direction="right" @click="reportDetails(item.repairId)"
							v-if="item.repairType==2">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.description"
								:value="item.auditFlag=='0'? '待审核' : item.auditFlag=='1' ? '同意' : '拒绝'">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title="投诉" arrow-direction="right" @click="reportDetails(item.repairId)"
							v-if="item.repairType==3">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.description"
								:value="item.auditFlag=='0'? '待审核' : item.auditFlag=='1' ? '同意' : '拒绝'">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title="建议" arrow-direction="right" @click="reportDetails(item.repairId)"
							v-if="item.repairType==4">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.description"
								:value="item.auditFlag=='0'? '待审核' : item.auditFlag=='1' ? '同意' : '拒绝'">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>

				<!-- 待接单 -->
				<uni-card class="second_card three_card" v-for="(value,key,index) in allData4" :key="index" style="margin: 0;"
					v-if="current2==2">
					<view class="time">
						<!-- 2021-06-09 星期三 今天 -->
						{{key}}
					</view>
					<u-cell-group :border="false" v-for="(item,index) in allData4[key]" :key="index">
						<u-cell-item title=" " arrow-direction="right" v-if="item.orderStatus==0"
							@click="orderInformation(item.orderId)">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.describe" value="待接单">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title=" " arrow-direction="right" v-if="item.orderStatus==1"
							@click="orderInformation(item.orderId)">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.describe" value="正常接单">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title=" " arrow-direction="right" v-if="item.orderStatus==2"
							@click="orderInformation(item.orderId)">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.describe" value="超时接单">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 待执行 -->
				<uni-card class="second_card three_card" v-for="(value,key,index) in allData5" :key="index" style="margin: 0;"
					v-if="current2==3">
					<view class="time">
						<!-- 2021-06-09 星期三 今天 -->
						{{key}}
					</view>
					<u-cell-group :border="false" v-for="(item,index) in allData5[key]" :key="index">
						<u-cell-item title=" " arrow-direction="right" @click="implemented(item.orderId)"
							v-if="item.executeStatus==0">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.describe" value="未执行">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title=" " arrow-direction="right" @click="implemented(item.orderId)"
							v-if="item.executeStatus==1">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.describe" value="正常执行">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title=" " arrow-direction="right" @click="implemented(item.orderId)"
							v-if="item.executeStatus==2">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.describe" value="超时执行">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 待复查 -->
				<uni-card class="second_card three_card" v-for="(value,key,index) in allData6" :key="index" style="margin: 0;"
					v-if="current2==4">
					<view class="time">
						<!-- 2021-06-09 星期三 今天 -->
						{{key}}
					</view>
					<u-cell-group :border="false" v-for="(item,index) in allData6[key]" :key="index">
						<u-cell-item title=" " arrow-direction="right" @click="workInformation(item.orderId)"
							v-if="item.reviewStatus==0">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.describe" value="待复查">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title=" " arrow-direction="right" @click="workInformation(item.orderId)"
							v-if="item.reviewStatus==1">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.describe" value="已复查">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 评价 -->
				<uni-card class="second_card three_card" v-for="(value,key,index) in allData24" :key="index" style="margin: 0;"
					v-if="current2==5">
					<view class="time">
						<!-- 2021-06-09 星期三 今天 -->
						{{key}}
					</view>
					<u-cell-group :border="false" v-for="(item,index) in allData24[key]" :key="index">
						<u-cell-item title=" " arrow-direction="right" @click="evaluate(item.orderId)"
							v-if="item.assessStatus==0">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.describe" value="未评价">
							</u-cell-item>
						</u-cell-item>
						<u-cell-item title=" " arrow-direction="right" @click="evaluate(item.orderId)"
							v-if="item.assessStatus==1">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.describe" value="已评价">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>

			</view>
			<!-- 巡更 -->
			<view v-if="current==1&&user_type==2" style="margin-top: 20rpx;">
				<!-- 全部 -->
				<uni-card class="second_card four_card" style="margin: 0;" v-if="current3==0">
					<!-- 					<view class="time" >
						{{key}}
					</view> -->
					<u-cell-group :border="false" v-for="(item,index) in allData7" :key="index">
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0">
							<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1">
							<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2">
							<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3">
							<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 待接单 -->
				<uni-card class="second_card four_card" style="margin: 0;" v-if="current3==1">
					<u-cell-group :border="false" v-for="(item,index) in allData8" :key="index">
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0"
							@click="waitingList(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1"
							@click="waitingList(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2"
							@click="waitingList(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3"
							@click="waitingList(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 待执行 -->
				<uni-card class="second_card four_card" style="margin: 0;" v-if="current3==2">
					<u-cell-group :border="false" v-for="(item,index) in allData17" :key="index">
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0"
							@click="patrol_implemented(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1"
							@click="patrol_implemented(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2"
							@click="patrol_implemented(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3"
							@click="patrol_implemented(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
						</u-cell-item>
						<!-- 						<u-cell-item title="访春园道路坍塌维修建议" arrow-direction="right" @click="patrol_unexecuted">
							<u-cell-item :arrow="false" :border-bottom="false" value="待发单"></u-cell-item>
						</u-cell-item> -->
					</u-cell-group>
				</uni-card>
				<!-- 已完成 -->
				<uni-card class="second_card four_card" style="margin: 0;" v-if="current3==3">
					<u-cell-group :border="false" v-for="(item,index) in allData9" :key="index">
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0"
							@click="completed(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1"
							@click="completed(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2"
							@click="completed(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3"
							@click="completed(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
			</view>
			<!-- 巡检 -->
			<view v-if="current==2&&user_type==2" style="margin-top: 20rpx;">
				<!-- 全部 -->
				<uni-card class="second_card four_card" style="margin: 0;" v-if="current3==0">
					<u-cell-group :border="false" v-for="(item,index) in allData12" :key="index">
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0">
							<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1">
							<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2">
							<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3">
							<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 待接单 -->
				<uni-card class="second_card four_card" style="margin: 0;" v-if="current3==1">
					<u-cell-group :border="false" v-for="(item,index) in allData10" :key="index">
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0"
							@click="patrolDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1"
							@click="patrolDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2"
							@click="patrolDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3"
							@click="patrolDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 待执行 -->
				<uni-card class="second_card four_card" style="margin: 0;" v-if="current3==2">
					<u-cell-group :border="false" v-for="(item,index) in allData18" :key="index">
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0"
							@click="patrolDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1"
							@click="patrolDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2"
							@click="patrolDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3"
							@click="patrolDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 已完成 -->
				<uni-card class="second_card four_card" style="margin: 0;" v-if="current3==3">
					<u-cell-group :border="false" v-for="(item,index) in allData11" :key="index">
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0"
							@click="inspection(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1"
							@click="inspection(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2"
							@click="inspection(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3"
							@click="inspection(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
			</view>
			<!-- 巡查 -->
			<view v-if="current==3&&user_type==2" style="margin-top: 20rpx;">
				<!-- 全部 -->
				<uni-card class="second_card four_card" style="margin: 0;" v-if="current3==0">
					<u-cell-group :border="false" v-for="(item,index) in allData13" :key="index">
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0">
							<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1">
							<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2">
							<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3">
							<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 待接单 -->
				<uni-card class="second_card four_card" style="margin: 0;" v-if="current3==1">
					<u-cell-group :border="false" v-for="(item,index) in allData14" :key="index">
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0"
							@click="pendingDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1"
							@click="pendingDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2"
							@click="pendingDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3"
							@click="pendingDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 待执行 -->
				<uni-card class="second_card four_card" style="margin: 0;" v-if="current3==2">
					<!-- 					<view class="time" >
						2021-06-09 星期三 今天
					</view>
					<u-cell-group :border="false">
						<u-cell-item title="秋月园Y21#-2单元-403室装修" arrow-direction="right" @click="pendingDetails">
							<u-cell-item :arrow="false" :border-bottom="false" value="待发单"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
					<view class="time" >
						2021-06-08 星期二 昨天
					</view>
					<u-cell-group :border="false">
						<u-cell-item title="抄表" arrow-direction="right" @click="pendingDetails">
							<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待执行">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group> -->
					<u-cell-group :border="false" v-for="(item,index) in allData19" :key="index">
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0"
							@click="pendingDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1"
							@click="pendingDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2"
							@click="pendingDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3"
							@click="pendingDetails(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 已完成 -->
				<uni-card class="second_card four_card" style="margin: 0;" v-if="current3==3">
					<u-cell-group :border="false" v-for="(item,index) in allData15" :key="index">
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0"
							@click="patrolSuccess(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1"
							@click="patrolSuccess(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2"
							@click="patrolSuccess(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
						</u-cell-item>
						<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3"
							@click="patrolSuccess(item.patrolId)">
							<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
			</view>
			<!-- 抄表 -->
			<view v-if="current==4&&user_type==2" style="margin-top: 20rpx;">
				<!-- 全部 -->
				<uni-card class="second_card" style="margin: 0;" v-if="current4==0">
					<view class="time">
						2021-06-09 星期三 今天
					</view>
					<u-cell-group :border="false">
						<u-cell-item title="抄表" arrow-direction="right">
							<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待发单">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 待接单 -->
				<uni-card class="second_card" style="margin: 0;" v-if="current4==1">
					<view class="time">
						2021-06-09 星期三 今天
					</view>
					<u-cell-group :border="false">
						<u-cell-item title="抄表" arrow-direction="right" @click="meterList">
							<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待发单">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 待执行 -->
				<uni-card class="second_card" style="margin: 0;" v-if="current4==2">
					<view class="time">
						2021-06-09 星期三 今天
					</view>
					<u-cell-group :border="false">
						<u-cell-item title="抄表" arrow-direction="right" @click="meterList">
							<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待发单">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 待复查 -->
				<uni-card class="second_card" style="margin: 0;" v-if="current4==3">
					<view class="time">
						2021-06-09 星期三 今天
					</view>
					<u-cell-group :border="false">
						<u-cell-item title="抄表" arrow-direction="right" @click="meterList">
							<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待发单">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 完成 -->
				<uni-card class="second_card" style="margin: 0;" v-if="current4==4">
					<view class="time">
						2021-06-09 星期三 今天
					</view>
					<u-cell-group :border="false">
						<u-cell-item title="抄表" arrow-direction="right" @click="meterList">
							<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待发单">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
			</view>
			<!-- 审批 -->
			<view v-if="current==5" style="margin-top: 20rpx;">
				<!-- 业主待审批 -->
				<uni-card class="second_card" v-for="(item,index) in allData20" :key="index" style="margin: 0;"
					v-if="current5==0">
					<!-- 					<view class="time" >
						2021-06-09 星期三 今天
					</view> -->
					<u-cell-group :border="false">
						<u-cell-item title=" " arrow-direction="right" @click="pendingApproval(item.ownerId)">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.address"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 业主已审批 -->
				<uni-card class="second_card" v-for="(item,index) in allData21" :key="index" style="margin: 0;"
					v-if="current5==1">
					<!-- 					<view class="time" >
						2021-06-09 星期三 今天
					</view> -->
					<u-cell-group :border="false">
						<u-cell-item title=" " arrow-direction="right" @click="tenantInformation(item.ownerId)">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.address"
								:value="item.auditStatus==1? '通过':'驳回'"></u-cell-item>
						</u-cell-item>
						<!-- 						<u-cell-item title="业主" arrow-direction="right" @click="memberInformation">
							<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表"></u-cell-item>
						</u-cell-item>
						<u-cell-item title="业主" arrow-direction="right" @click="tenantInformation">
							<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表"></u-cell-item>
						</u-cell-item> -->
					</u-cell-group>
				</uni-card>
				<!-- 租户待审批 -->
				<uni-card class="second_card" v-for="(item,index) in allData22" :key="index" style="margin: 0;"
					v-if="current5==2">
					<u-cell-group :border="false">
						<u-cell-item title=" " arrow-direction="right" @click="tenantPending(item.tenantId)">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.address"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 租户已审批 -->
				<uni-card class="second_card" v-for="(item,index) in allData23" :key="index" style="margin: 0;"
					v-if="current5==3">
					<u-cell-group :border="false">
						<u-cell-item title=" " arrow-direction="right" @click="adminTenant(item.tenantId)">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.address"
								:value="item.auditStatus==1? '通过':'驳回'"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 党员待审批 -->
				<uni-card class="second_card" v-for="(item,index) in allData25" :key="index" style="margin: 0;"
					v-if="current5==4">
					<u-cell-group :border="false">
						<u-cell-item title=" " arrow-direction="right" @click="membersApproved(item.memberId)">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.ownerName+'入党审核'">
							</u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
				<!-- 党员已审批 -->
				<uni-card class="second_card" v-for="(item,index) in allData26" :key="index" style="margin: 0;"
					v-if="current5==5">
					<u-cell-group :border="false">
						<u-cell-item title=" " arrow-direction="right" @click="memberInformation(item.memberId)">
							<u-cell-item :arrow="false" :border-bottom="false" :title="item.ownerName+'入党已审核'"
								:value="item.checkStatus==1? '通过':'驳回'"></u-cell-item>
						</u-cell-item>
					</u-cell-group>
				</uni-card>
			</view>

			<!-- 新建工单 -->
			<view class="icon_one">
				<image src="/static/workOrder/plus.png" mode="" style="width: 100rpx; height: 100rpx;"
					@click="newworkOrder()"></image>
				<!-- <u-icon name="plus-circle" color="#2979ff" size="120" @click="newworkOrder"></u-icon> -->
			</view>
		</view>
		<!-- 移动端安保人员 -->
		<workSecurity :reciveUserInfo="allData7" :allData8="allData8" :allData9="allData9" :allData12="allData12"
			:allData10="allData10" :allData11="allData11" :allData13="allData13" :allData14="allData14"
			:allData15="allData15" :allData17="allData17" :allData18="allData18" :allData19="allData19"
			v-if="user_type=='1'&&flag"></workSecurity>
		<!-- 移动端维修人员 -->
		<mobileTerminal :allData2="allData2" :allData4="allData4" :allData5="allData5" :allData6="allData6"
			:allData24="allData24" v-if="user_type=='0'&&flag"></mobileTerminal>
		<!-- <piece></piece> -->
		<!-- 提示去登录 -->
		<u-modal v-model="show" show-cancel-button="true" cancel-color="#2979ff" :content="content" @confirm="confirm">
		</u-modal>
		<!-- template部分，u-tabBar放在页面展现最后 -->
		<!-- <cover-view> -->
		<!-- <u-tabbar :list="tabBarList" :active-color="activeColor" :inactive-colot="inactiveColor"></u-tabbar> -->
		<!-- tabBar -->
		<tabBar v-if="flag"></tabBar>
		<!-- </cover-view> -->

	</view>
</template>

<script>
	import workSecurity from "@/pages/workSecurity/workSecurity.vue"
	import mobileTerminal from "@/pages/mobileTerminal/mobileTerminal.vue"
	import tabBar from "@/components/tabBar/tabBar.vue"
	// import piece from "../../pagesA/piece/piece.vue"
	import {
		mapGetters
	} from 'vuex'
	export default {
		components: {
			workSecurity,
			mobileTerminal,
			tabBar
			// piece
		},
		data() {
			return {
				list: [{
					name: '报事报修'
				}, {
					name: '巡更'
				}, {
					name: '巡检',
				}, {
					name: '巡查',
				}, {
					name: '抄表',
				}, {
					name: '审批',
				}],
				list2: [{
					name: '全部'
				}, {
					name: '待审核'
				}, {
					name: '待接单',
				}, {
					name: '待执行',
				}, {
					name: '待复查',
				}, {
					name: '评价',
				}],
				list3: [{
					name: '全部'
				}, {
					name: '待接单',
				}, {
					name: '待执行',
				}, {
					name: '已完成',
				}],
				list4: [{
					name: '全部'
				}, {
					name: '待接单',
				}, {
					name: '待执行',
				}, {
					name: '待复查',
				}, {
					name: '完成',
				}],
				list5: [{
					name: '业主待审批'
				}, {
					name: '业主已审批',
				}, {
					name: '租户待审批'
				}, {
					name: '租户已审批',
				}, {
					name: '党员待审批'
				}, {
					name: '党员已审批',
				}],
				current: 0,
				current2: 0,
				current3: 0,
				current4: 0,
				current5: 0,
				// 模态框参数
				show: false,
				// 模态框参数
				content: '当前未登录，是否去登录',
				activeColor: "#55a0ff", // 选中时的颜色
				inactiveColor: "#000", // 未选中时的颜色
				user_type: '',
				loginId: '',
				// 报事报修全部数据
				allData: '',
				// 报事报修待审核数据
				allData2: '',
				// 报事报修待审核数据
				allData3: '',
				// 查询工单列表
				allData4: '',
				// 工单待执行列表
				allData5: '',
				// 工单待复查列表
				allData6: '',
				// 巡更全部列表
				allData7: '',
				// 巡更待接单列表
				allData8: '',
				// 查询巡完成列表
				allData9: '',
				// 查询巡检全部列表
				allData10: '',
				// 查询巡检已完成列表
				allData11: '',
				// 查询巡检全部列表
				allData12: '',
				// 查询巡查全部列表
				allData13: '',
				// 查询巡查待接单列表
				allData14: '',
				// 查询巡查已完成列表
				allData15: '',
				// 维修人员报事报修待执行
				allData16: '',
				// 安保人员巡更待执行
				allData17: '',
				// 安保人员巡检待执行
				allData18: '',
				// 安保人员巡查待执行
				allData19: '',
				// 管理人员业主待审批
				allData20: '',
				// 管理人员业主已审批
				allData21: '',
				// 管理人员租户待审批
				allData22: '',
				// 管理人员租户已审批
				allData23: '',
				// 管理人员报事报修评价
				allData24: '',
				// 管理人员党员待审批
				allData25: '',
				// 管理人员党员已审批
				allData26: '',
				flag:''
			}
		},
		computed: {
			...mapGetters([
				'tabBarList', // 获取展示的tabBar列表
			])
		},
		onLoad() {
			// // this.getcoursetype()
			// // 查询报事保修全部列表
			// this.warrantyReports()
			// // 查询报事保修待审核状态列表
			// this.approvedReports()
			// // 查询工单列表
			// this.orderList()
			// // 工单待执行列表
			// this.executedList()
			// // 工单待复查列表
			// this.listReviewed()
		},
		onShow() {
			// debugger
			// this.$refs.stock.getData()
			this.flag = true
			// 控制模态框
			// this.show=true
			this.getcoursetype()
			// 查询报事保修全部列表
			this.warrantyReports()
			// 查询报事保修待审核状态列表
			this.approvedReports()
			// 查询工单列表
			this.orderList()
			// 工单待执行列表
			this.executedList()
			// 工单待复查列表
			this.listReviewed()
			// 查询巡更全部列表
			this.tourList()
			// 查询巡更待接单列表
			this.waitingOrders()
			// 查询巡完成列表
			this.patrolCompleted()
			// 查询巡检全部列表
			this.patrolAll()
			// 查询巡检待接单列表
			this.inspectionWaiting()
			// 查询巡检已完成列表
			this.patrolInspection()
			// 查询巡查全部列表
			this.queryPatrol()
			// 查询巡查待接单列表
			this.patrolPending()
			// 查询巡查已完成列表
			this.completedList()
			// 维修人员报事报修待执行
			this.executed()
			// 安保人员巡更待执行
			this.securityPatrol()
			// 安保人员巡检待执行
			this.performed()
			// 安保人员巡查待执行
			this.executedPatrol()
			// 管理人员待审批
			this.approvalList()
			// 管理人员已审批
			this.approvedList()
			// 管理人员租户待审批
			this.tenantApproval()
			// 管理人员租户已审批
			this.tenantApproved()
			// 管理人员报事报修评价
			this.repairEvaluation()
			// 管理人员党员待审批
			this.partyMembers()
			// 管理人员党员已审批
			this.memberApproved()
			// console.log('onShow')
		},
		onHide() {
			this.flag = false
			// console.log('onHide')
		},
		methods: {
			change(index) {
				this.current = index;
				console.log(this.current)
			},
			change2(index) {
				this.current2 = index;
				// console.log(this.current2)
			},
			change3(index) {
				this.current3 = index;
				// console.log(this.current2)
			},
			change4(index) {
				this.current4 = index;
				// console.log(this.current2)
			},
			change5(index) {
				this.current5 = index;
				// console.log(this.current2)
			},
			getcoursetype() { //课程分类
				this.user_type = uni.getStorageSync("userType")
				this.loginId = uni.getStorageSync("setModel")
			},
			// 移动端维修人员查询报事保修全部列表
			warrantyReports() {
				// const self =this
				this.$http.get('WorkOrder/selectWarrantyList', {
					loginId: this.loginId.userId
				}).then(res => {
					this.allData2 = res.data
					// console.log(res, '报事保修全部列表')
					// let areaId=res.data 
					// console.log(areaId["tempDate"]);
					// console.log(areaId,222);
					// for(let item  in areaId){
					//        // console.log(areaId[item],999)
					// 	this.allData3.push(areaId[item][0])
					//        // console.log(item,111)
					// 	// console.log(self.allData2)
					//        // console.log(item.value)
					//  }
				})
			},
			// 查询报事保修待审核状态列表
			approvedReports() {
				this.$http.get('WorkOrder/Audit', {
					loginId: this.loginId.userId
				}).then(res => {
					this.allData3 = res.data
					// this.tempDate=res.data
					// console.log(res, '待审核')
				})
			},
			// 移动端维修人员查询工单列表
			orderList() {
				this.$http.get('WorkOrder/selectReportOrderList', {
					loginId: this.loginId.userId
				}).then(res => {
					this.allData4 = res.data
					// this.tempDate=res.data
					// console.log(res, '查询工单列表')
				})
			},
			// 移动端维修人员工单待执行列表
			executedList() {
				this.$http.get('WorkOrder/executed', {
					loginId: this.loginId.userId
				}).then(res => {
					this.allData5 = res.data
					// this.tempDate=res.data
					let areaId = res.data
					console.log(areaId, '工单待执行列表-----------------')
					// console.log(areaId["tempDate"]);
					// console.log(areaId,222);
					// for(let item  in areaId){
					//        // console.log(areaId[item],999)
					// 	// this.allData3.push(areaId[item][0])
					//        // console.log(item,11122222222222222)
					// 	// console.log(self.allData2)
					//        // console.log(item.value)
					//  }
				})
			},
			// 移动端维修人员工单待复查列表
			listReviewed() {
				this.$http.get('WorkOrder/Reviewed', {
					loginId: this.loginId.userId
				}).then(res => {
					this.allData6 = res.data
					let areaId2 = res.data
				})
			},
			// 查询巡更全部列表
			tourList() {
				this.$http.get('Patrol/selectAllPatrol', {
					patrolType: '2',
					loginId: this.loginId.userId
				}).then(res => {
					this.allData7 = res.data
					let areaId2 = res.data
					// console.log(areaId2, '查询巡更全部列表')
				})
			},
			// 查询巡更待接单列表
			waitingOrders() {
				this.$http.get('Patrol/selectPatrol', {
					patrolType: '2',
					patrolStatus: '0',
					loginId: this.loginId.userId
				}).then(res => {
					this.allData8 = res.data
					let areaId2 = res.data
					// console.log(areaId2, '查询巡更待接单列表')
				})
			},
			// 查询巡更待执行列表
			securityPatrol() {
				this.$http.get('Patrol/selectPatrol', {
					patrolType: '2',
					patrolStatus: '1',
					loginId: this.loginId.userId
				}).then(res => {
					this.allData17 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'维修人员巡更待执行列表'); 
				})
			},
			// 查询巡更完成列表
			patrolCompleted() {
				this.$http.get('Patrol/selectPatrol', {
					patrolType: '2',
					patrolStatus: '2',
					loginId: this.loginId.userId
				}).then(res => {
					this.allData9 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'查询巡完成列表');
				})
			},
			// 查询巡检全部列表
			patrolAll() {
				this.$http.get('Patrol/selectAllPatrol', {
					patrolType: '3',
					loginId: this.loginId.userId
				}).then(res => {
					this.allData12 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'查询巡检全部列表');
				})
			},
			// 查询巡检待接单列表
			inspectionWaiting() {
				this.$http.get('Patrol/selectPatrol', {
					patrolType: '3',
					patrolStatus: '0',
					loginId: this.loginId.userId
				}).then(res => {
					this.allData10 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'查询巡检待接单列表');
				})
			},
			// 查询巡检待执行
			performed() {
				this.$http.get('Patrol/selectPatrol', {
					patrolType: '3',
					patrolStatus: '1',
					loginId: this.loginId.userId
				}).then(res => {
					this.allData18 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'安保人员巡检待执行'); 
				})
			},
			// 查询巡检已完成列表
			patrolInspection() {
				this.$http.get('Patrol/selectPatrol', {
					patrolType: '3',
					patrolStatus: '2',
					loginId: this.loginId.userId
				}).then(res => {
					this.allData11 = res.data
					let areaId2 = res.data
					console.log(areaId2,'查询巡检已完成列表');
				})
			},
			// 查询巡查全部列表
			queryPatrol() {
				this.$http.get('Patrol/selectAllPatrol', {
					patrolType: '0',
					loginId: this.loginId.userId
				}).then(res => {
					this.allData13 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'查询巡查全部列表'); 
				})
			},
			// 查询巡查待接单列表
			patrolPending() {
				this.$http.get('Patrol/selectPatrol', {
					patrolType: '0',
					patrolStatus: '0',
					loginId: this.loginId.userId
				}).then(res => {
					this.allData14 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'查询巡查待接单列表');
				})
			},
			// 安保人员巡查待执行
			executedPatrol() {
				this.$http.get('Patrol/selectPatrol', {
					patrolType: '0',
					patrolStatus: '1',
					loginId: this.loginId.userId
				}).then(res => {
					this.allData19 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'安保人员巡查待执行');
				})
			},
			// 查询巡查已完成列表
			completedList() {
				this.$http.get('Patrol/selectPatrol', {
					patrolType: '0',
					patrolStatus: '2',
					loginId: this.loginId.userId
				}).then(res => {
					this.allData15 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'查询巡查已完成列表'); 
				})
			},
			// 维修人员报事报修待执行
			executed() {
				this.$http.get('WorkOrder/selectToBeExecuteds', {
					loginId: this.loginId.userId
				}).then(res => {
					this.allData16 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'维修人员报事报修待执行列表');
				})
			},

			// 管理人员业主待审批
			approvalList() {
				this.$http.get('TenantOwner/ownerReviewList', {
					loginId: this.loginId.userId,
					deptId: this.loginId.deptId
				}).then(res => {
					this.allData20 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'管理人员业主待审批'); 
				})
			},
			// 管理人员业主已审批
			approvedList() {
				this.$http.get('TenantOwner/OwnerAfterApproval', {
					loginId: this.loginId.userId,
					deptId: this.loginId.deptId
				}).then(res => {
					this.allData21 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'管理人员业主已审批'); 
				})
			},
			// 管理人员租户待审批
			tenantApproval() {
				this.$http.get('TenantOwner/selectTenantList', {
					loginId: this.loginId.userId,
					deptId: this.loginId.deptId
				}).then(res => {
					this.allData22 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'管理人员租户待审批'); 
				})
			},
			// 管理人员租户已审批
			tenantApproved() {
				this.$http.get('TenantOwner/selectTenantSuccessList', {
					loginId: this.loginId.userId,
					deptId: this.loginId.deptId
				}).then(res => {
					this.allData23 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'管理人员租户已审批'); 
				})
			},
			// 管理人员党员待审批
			partyMembers() {
				this.$http.get('partyMember/selectPartyMember', {
					loginId: this.loginId.userId
				}).then(res => {
					this.allData25 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'管理人员党员待审批');
				})
			},
			// 管理人员党员已审批
			memberApproved() {
				this.$http.get('partyMember/selectReviewPartyMember', {
					loginId: this.loginId.userId
				}).then(res => {
					this.allData26 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'管理人员党员已审批');
				})
			},
			// 管理人员报事报修评价
			repairEvaluation() {
				this.$http.get('WorkOrder/selectReportOrderEvaluation', {
					loginId: this.loginId.userId
				}).then(res => {
					this.allData24 = res.data
					let areaId2 = res.data
					// console.log(areaId2,'管理人员报事报修评价');
				})
			},
			// 点击确认按钮时触发
			confirm() {
				this.openUrl('/pagesB/sign/sign')
			},
			// 待审核详情
			reportDetails(repairId) {
				console.log(repairId)
				this.openUrl(`/pagesA/workOrder/reportDetails/reportDetails?repairId=${repairId}`)
			},
			// 新建工单
			newworkOrder() {
				console.log(this.current)
				let newCurrent = this.current

				switch (newCurrent) {
					// 报事报修新建工单
					case 0:
						return this.openUrl('/pagesA/workOrder/createOrder/createOrder')
						// 巡更新建工单
					case 1:
						return this.openUrl('/pagesA/workOrder/newWork/newWork')
						// 巡检新建工单
					case 2:
						return this.openUrl('/pagesA/workOrder/newworkOrder/newworkOrder')
						// 巡查新建工单
					case 3:
						return this.openUrl('/pagesA/workOrder/patrolOrder/patrolOrder')
				}

				// this.openUrl('/pagesA/workOrder/newworkOrder/newworkOrder')
			},
			// 待接单详情
			orderInformation(orderId) {
				console.log(orderId)
				this.openUrl(`/pagesA/workOrder/orderInformation/orderInformation?orderId=${orderId}`)
			},
			// 待执行详情
			implemented(orderId) {
				console.log(orderId)
				this.openUrl(`/pagesA/workOrder/implemented/implemented?orderId=${orderId}`)
			},
			// 待复查详情
			workInformation(orderId) {
				this.openUrl(`/pagesA/workOrder/workInformation/workInformation?orderId=${orderId}`)
			},
			// 评价详情
			evaluate(orderId) {
				this.openUrl(`/pagesA/workOrder/evaluate/evaluate?orderId=${orderId}`)
			},
			// 巡更待接单详情
			waitingList(patrolId) {
				this.openUrl(`/pagesA/workOrder/waitingList/waitingList?patrolId=${patrolId}`)
			},
			// 巡更待执行详情
			patrol_implemented(patrolId) {
				this.openUrl(`/pagesA/workOrder/patrol_implemented/patrol_implemented?patrolId=${patrolId}`)
			},
			patrol_unexecuted() {
				this.openUrl('/pagesA/workOrder/patrol_unexecuted/patrol_unexecuted')
			},
			// 巡更已完成详情
			completed(patrolId) {
				this.openUrl(`/pagesA/workOrder/completed/completed?patrolId=${patrolId}`)
			},
			// 巡检待接单详情
			patrolDetails(patrolId) {
				this.openUrl(`/pagesA/workOrder/patrolDetails/patrolDetails?patrolId=${patrolId}`)
			},
			// 巡检已完成详情
			inspection(patrolId) {
				console.log(patrolId, '-----------------巡检已完成详情')
				this.openUrl(`/pagesA/workOrder/inspection/inspection?patrolId=${patrolId}`)
			},
			// 巡查待接单详情
			pendingDetails(patrolId) {
				this.openUrl(`/pagesA/workOrder/pendingDetails/pendingDetails?patrolId=${patrolId}`)
			},
			// 巡查已完成详情
			patrolSuccess(patrolId) {
				this.openUrl(`/pagesA/workOrder/patrolSuccess/patrolSuccess?patrolId=${patrolId}`)
			},
			meterList() {
				this.openUrl('/pagesA/workOrder/meterList/meterList')
			},
			// 管理人员业主待审批
			pendingApproval(ownerId) {
				this.openUrl(`/pagesA/workOrder/pendingApproval/pendingApproval?ownerId=${ownerId}`)
			},
			// 管理人员业主已审批
			tenantInformation(ownerId) {
				this.openUrl(`/pagesA/workOrder/tenantInformation/tenantInformation?ownerId=${ownerId}`)
			},
			// 管理人员租户待审批
			tenantPending(tenantId) {
				this.openUrl(`/pagesA/workOrder/tenantPending/tenantPending?tenantId=${tenantId}`)
			},
			// 管理人员租户已审批
			adminTenant(tenantId) {
				this.openUrl(`/pagesA/workOrder/adminTenant/adminTenant?tenantId=${tenantId}`)
			},
			// 管理人员党员待审批
			membersApproved(memberId) {
				this.openUrl(`/pagesA/workOrder/membersApproved/membersApproved?memberId=${memberId}`)
			},
			// 管理人员党员已审批
			memberInformation(memberId) {
				this.openUrl(`/pagesA/workOrder/memberInformation/memberInformation?memberId=${memberId}`)
			},
		}
	}
</script>

<style lang="scss" scoped>
	.mail_two {
		overflow: hidden;
		width: 100%;
		height: 308rpx;
		// background-color: #cccccc;

		::v-deep .first_tabs {
			position: fixed;
			width: 100%;
			z-index: 9;
			display: block;

			// margin-left: 33rpx !important;
			// margin-top: 150rpx !important;
			/deep/.u-tabs {
				height: 200rpx !important;
				background: linear-gradient(-99.24deg, #57E1FF 0%, #75F7FF 20%, #0D92FF 100%) !important;
				padding: 100rpx 0 0 33rpx;
			}

			.u-tab-item:nth-child(3) {
				flex: unset !important;
			}

			.u-tab-item:nth-child(5) {
				flex: unset !important;
			}

		}

		.tabs {
			position: fixed;
			width: 100%;
			z-index: 99;
			margin-top: 223rpx;

			/deep/.uni-card__content {
				padding: 0;
			}
		}
	}

	/deep/.second_card {
		.time {
			margin: 42rpx 0 8rpx 0;
			text-align: center;
			color: #ccc;
		}

		/deep/.u-cell__value {
			margin-right: -18rpx;
		}

		.u-cell {
			// padding: 12rpx 24rpx;
			padding: 12rpx 14rpx 12rpx 24rpx;
		}

		.uni-card__content {
			padding: 0 24rpx !important;
		}
	}

	.icon_one {
		position: fixed;
		bottom: 300rpx;
		right: 10rpx;
		z-index: 999;
	}

	/deep/.uni-border {
		border-radius: unset !important;
		margin: 0 !important;
	}

	.uni-border[data-v-19622063]:after {
		border: unset;
	}

	/deep/.uni-border.data-v-19622063:after {
		border: unset;
	}
</style>
<style lang="scss">
	.mail_two {
		overflow: hidden;
		width: 100%;
		height: 308rpx;
		// background-color: #cccccc;

		.first_tabs {
			display: block;

			// margin-left: 33rpx !important;
			// margin-top: 150rpx !important;
			/deep/.u-tabs {
				height: 224rpx !important;
				background: linear-gradient(-99.24deg, #57E1FF 0%, #75F7FF 20%, #0D92FF 100%) !important;
				padding: 136rpx 0 0 33rpx;
			}

		}

	}

	// .second_card {
	// 	u-cell-item {
	// 		u-cell-item {
	// 				    // width: 389rpx!important;
	// 			/deep/.u-cell_title {
	// 				    width: 323rpx !important;
	// 				    // width: 358rpx !important;
	// 					    overflow: hidden;
	// 					    text-overflow: ellipsis;
	// 					    white-space: nowrap; 
	// 			}
	// 		}
	// 	}
	// }
	.three_card {
		u-cell-item {
			u-cell-item {

				// width: 389rpx!important;
				/deep/.u-cell_title {
					// width: 358rpx !important;
					width: 323rpx !important;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
				}
			}
		}
	}

	.four_card {
		u-cell-item {

			// width: 389rpx!important;
			/deep/.u-cell_title {
				// width: 358rpx !important;
				width: 248rpx !important;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
		}
	}
</style>
